<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P151 【例7-1】demo01.html</title>
</head>

<body>
    <div id="box">box</div>
    <div class="bar">bar</div>
    <div name="main">mian</div>
    <script>
        console.log(document.getElementById('box'));
        console.log(document.getElementsByClassName('bar'));
        console.log(document.getElementsByTagName('div'));
        console.log(document.getElementsByName('main'));
    </script>
    <a href="../首页/page07.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>